import request from '@pangza-club/utils/axios';

export function getCategoryList() {
    return request.get<Category[]>('/api/category/list');
}

export function getCategoryChildren(id: number) {
    return request.get<Category[]>(`/api/category/list/children/${id}`);
}